package com.ciaojian.client.service;

import com.ciaojian.core.enums.business.*;
import com.ciaojian.core.mapper.WorkerMapper;
import com.ciaojian.core.model.Order;
import com.ciaojian.core.model.ProductGroup;
import com.ciaojian.core.model.Worker;
import com.ciaojian.core.model.vo.WorkerVo;
import com.ciaojian.core.service.OrderService;
import com.ciaojian.core.service.ProductGroupService;
import com.ciaojian.core.service.StoreService;
import com.ciaojian.core.service.WorkerService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author Atlakyn
 */
@Service
public class WorkerServiceImpl extends WorkerService<WorkerMapper, Worker> {


    public WorkerVo getVoById(Integer id) {
        return baseMapper.getById(id);
    }

    /**
     * 查询门店下某个班次未排班的发型师
     *
     * @param date     日期
     * @param rosterId 班次id
     * @param storeId  门店id
     * @return 未排班的发型师
     */
    public List<Worker> findNotSchedule(Date date, Integer rosterId, Integer storeId) {
        return baseMapper.findNotSchedule(date, rosterId, storeId);
    }


}
